import React, { useEffect } from "react";

const TestOptionsMethod: React.FC = () => {
  useEffect(() => {
    fetch("http://localhost:3001/options", {
      headers: {
        a: "1",
        "Content-Type": "application/json"
      },
      method: "POST",
      body: JSON.stringify({
        b: 2
      })
    })
      .then(resp => resp.json())
      .then(data => console.log(data));
  }, []);

  return <h3>TestOptionsMethod</h3>;
};
export default TestOptionsMethod;
